
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>后台登录</title>
    {css href="/static/css/googleicon.css"}
    {css href="/static/css/bootstrap.css"}
    {css href="/static/css/waves.css"}
    {css href="/static/css/animate.css"}
    {css href="/static/css/login/style.css"}
</head>

<body class="login-page">
    <div class="login-box">
        <div class="logo">
            <a href="javascript:void(0);">安康三多暖通积分录入系统</a>
        </div>
        <div class="card">
            <div class="body">
                <form id="sign_in" method="POST" action="{:url('admin/check')}">
                    <div class="input-group">
                        <span class="input-group-addon">
                            <i class="material-icons">person</i>
                        </span>
                        <div class="form-line">
                            <input type="text" class="form-control" name="username" placeholder="用户名" required autofocus>
                        </div>
                    </div>
                    <div class="input-group">
                        <span class="input-group-addon">
                            <i class="material-icons">lock</i>
                        </span>
                        <div class="form-line">
                            <input type="password" class="form-control" name="password" placeholder="密码" required>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6 p-t-5 form-line">
                            <input type="text" class="form-control" name="verifycode" placeholder="请输入验证码" required>
                        </div>
                        <div class="col-xs-6" style="margin: 0; padding: 0">
                            <img src="{:captcha_src()}" alt="验证码" id="captcha" onclick="qiehuan()" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <button class="btn btn-block bg-pink waves-effect" type="submit">登 录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

    {js href="/static/js/jquery12.min.js"}
    {js href="/static/js/bootstrap.js"}
    {js href="/static/js/waves.js"}
    {js href="/static/js/jquery.validate.min.js"}
    {js href="/static/js/messages_zh.min.js"}
    {js href="/static/js/admin.js"}
    {js href="/static/js/sign-in.js"}
    <script>
    function qiehuan() {
        var src = "{:captcha_src()}";
        $('#captcha').attr('src', src);
    }
    </script>
</body>

</html>